package chai.ning.immutable;

public class Panda {
	
	private String name ;
	
	public Panda( String name ) {
		super();
		this.name = name ;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Panda[name=" + name + "]";
	}

	public static void main(String[] args) {
		Panda p = new Panda( "食铁兽" );
		System.out.println( p );
		p.setName( "光光" );
		System.out.println( p );
	}

}
